// 从redis中获取当前对话conversation_id
// let conversation_id = await RedisSingleton.get(userInfo.userid + "_visualman");
// let visualManParams = {
//   content:visualChatDto.content,
//   conversation_id:conversation_id,
// }
import RedisSingleton from 'src/config/redis';

export function ConWrite(key, value, expireTime) {
    RedisSingleton.set(key, value);
    RedisSingleton.expire(key, expireTime); // Set expiration time to one day (24 hours)
}

export async function ConRead(key) {
    return await RedisSingleton.get(key);
}